package com.sure.supermarketserver.sell.adjust.dao;

import com.sure.supermarketserver.sell.adjust.AdjustDto;
import com.sure.supermarketserver.stock.manage.Goods;
import com.sure.supermarketserver.stock.manage.GoodsDto;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: fyf
 * @Date: 2021/07/20/16:34
 * @Description:
 */
public interface AdjustDao {

    @Select("select * from goods")
    List<AdjustDto> adjustPage(AdjustDto dto);

    @Update("update goods set go_name=#{go_name},go_type=#{go_type},go_num=#{go_num},go_price=#{go_price} where go_id=#{go_id}")
    void updateAdjust(AdjustDto dto);
}
